Ensure abort_connection is only called when client socket open