WinHttp used in async mode - ERROR_INTERNET_CANNOT_CONNECT how to cleanly close connection
===

I get lots of  ERROR_INTERNET_CANNOT_CONNECT (12029 code) in callback procedure of the request.
I use WinHttp in async mode(on a server). How do you cleanly close the connection in this case. Do you just use something like this(like you normally close a connection?):

				::WinHttpSetStatusCallback(handle, NULL, 0, 0);
				::WinHttpCloseHandle(this->handle));

I ask this because I have some strange memory leaking associated with winhttp dll that occurs in the situation described(want to create hundreds of concurrent connections that are probably blocked by the firm internal firewall or destination server drops the connections). I have already looked at the documentation of WinHttpCloseHandle on msdn...