Closes the server.