cListenThread: Fixed thread termination.
Fixed memory leaks in the HTTP framework