demo: Catch exception on disconnect and give error dialog correct title