Removed extra fork in connection handler that was allowing sockets to be closed too early