saving changes in case of cloud shutdown