Rack middleware for finding memory leaks