Rack middleware for zero-downtime maintenance behind a load balancer