Simple exception support based on LuaSocket