switch from sys.exit to os._exit