Fix keep-alive when request says to close, close #698