I added a sample cleanup method into routing_middleware.