Only flush if in started, recoverying or post_recovery phase.