Fix http response being disposed too soon