public object Run(Module main) { ExecutingModule = main; try { object exports = main.Run(); Initialized = true; return exports; } catch (Exception ex) { if (!HandleUncaughtException(ex)) throw; } finally { ExecutingModule = null; } return null; }