Fixed bug where the request was being used after it was closed.