Added the server.shutdown() to close serve_forever