Fix pending connections

Pending connections, connections that are trying to connect but have not yet connected, cause the reactor shutdown hook to return a Deferred that will never be fired, preventing the reactor from shutting down completely.