remove exit from httpclient.cpp