solve exit command problem in HTTPclient destructor