Use luaL_traceback function instead of calling debug.traceback.