Added test for connection already closed on server response