Remove dead connections from the event loop

Hopefully this should fix the leak reported when running memorygrowth.t against a server that refuses the connection.