private int processFile(String file, Object[] args) throws IOException{
		Utils.setConsoleTitle(file);
		Object o2 = null;
		try {
			o2 = se.invokeFunction(file+".<init>", args);
		} catch (NoSuchMethodException e) {
			throw new FileNotFoundException(file);
		} catch (ScriptException e) {
			log.rawprintln(Kind.ERROR, e.getMessage());
		}
		while(se.isRunning() && se.hasThreads()){
			se.run();
		}
		Object o = se.get(XScriptLang.ENGINE_ATTR_EXIT_STATE);
		return o instanceof Integer?(Integer)o:o2 instanceof Number?((Number)o2).intValue():Utils.OK;
	}