Clean shutdown when cherrypy is running