Properly handle uninitialized connection