Safely release cherrypy sessions (fixes #483)