Protect against waiting on closed connections.