Worked more on unregister lua script.