Added ability to refresh Lua state while running.