harry.py: fix bug cause by sys.exit in a subprocess