Because of the lua system I cant unload the dll, the process crashes. What needs to do with the lua system before unloading the dll.