Controller stops listening when the serverSocket is closed