better handling of exiting
better handling of exiting

jbfavre/exaproxy,PrFalken/exaproxy,david-farrar/exaproxy,david-farrar/exaproxy,david-farrar/exaproxy,PrFalken/exaproxy,PrFalken/exaproxy,jbfavre/exaproxy