In cases when the backend server goes down, the client remains connected and is not disconnected. A more accurate solution would be to periodically check the backend connection, and break the pipe when it goes down.