Fix checkpoint log resetting on sleep