stabilize conn with mutex