script.forceExit method added. Execution can be stopped outside the module