Add tests for response closing when the socket goes away
Don't try to write into closed streams