task status is now updated when session is ended