stabilize binary resource handling by always closing the entity stream when the browser cancels the original request