detect when stream is closed before all data is received when making http requests