Change client connection to better handle the remote end disconnecting
Handle connection close properly in the reverse proxy