Ensure that expiredDate gets set only if backup file gets deleted successfully