disconnection/logout detection and modal dialog.
allow disabling close button on notification template
disconnection detection