avoid local variable. Call exit if run function exits