Add try/catch block for lang.SystemExit