*/
public ExitStatus exec(File mainScript, final String[] args, final ErrorReporter reporter) {
final ExitStatus status = new ExitStatus();
if(!global.isInitialized()) {
global.init(contextFactory);
global.initQuitAction(new QuitAction() {
@Override
public void quit(Context context, int exitCode) {
status.setExitCode(exitCode);
}
});