Turn acquire_connection into a context manager
#3435
Closed
acquire_connection into a context manager
#3435