sync before power went off