Do not enter connection handler before all pending event registrations have been handled