Give user choice to disconnect all links on MainWindow close

Fixes Issue #1096 and #1062