session: Fix delete-event in dialog