delay resetting the restart in progress flag