Proxy requests are closed when server response already sent