Add middleware to clear any connections that a worker could be holding.