If there is no active connection (e.g. it is waiting in accept), then the connection object, which doesn't yet exist, should not be cleaned up when the socket is closed.