Cleanup Rack middleware.