Moved the LuaRegistration of the create context call in hope of better stability