Fixed bug in HttpClient disconnect.