Dialogues were not cleared when session was terminated.

It was careless copypaste and edit.