protected override object[] OnInvoke( Lua state, object[] args)
{
LuaFunction print = state["print"] as LuaFunction;
print.Call( string.Format( "CLR function called with: {0}", args[0] ) );
throw new Exception("Some CLR error.");
return new object[] { "Test" };
}