Handle sys.exit in perftc