distinguish between clean or bad shutdown
lua stack debug function
optimize lua_cppcall, callhook and packetfilter by caching the needed lua values in the registry
private: in spaghetti::extra