Saving state before switch to chef