Fixed issue #291 - added option and dialog for attempted window exit in the middle of a sync