Remove a call to socket.close()