fixed bugs

allow for immediate restart of proxy
catch KeyboardInterrupt