'Release the current serving (request and response).'

def release_serving(self):

    req = cherrypy.serving.request
    cherrypy.engine.publish('after_request')
    try:
        req.close()
    except:
        cherrypy.log(traceback=True, severity=40)
    cherrypy.serving.clear()
