Clear and start new task on logout. Fix crash on progress bar.