- trying to support case where legacy script uses exit()