Thread safe connections.