Better logging and fixed 2 bugs

Not clearing response phase between requests.
And 2 threads trying to close same connection.