I think you do this in a finally, also you need to dispose httprequestmessage as well.