Fix for script error reporting in case of interruption by Power button ('Javascript execution timeout' bug)