- fixed javascript exception cannot flush to client properly, because ScriptException and NoSuchMethodException is unserializable