session: Ensure dialog is hidden from panel (fixes #49)