Decomposed fallback routine in preparation for moving it to another file; added robust disconnect routine and associated menu item