Fix indentation.
Fix race condition that would lead to un-acquired connection and timeout.