Fix mantis issue 4183: Remote folder Settings window does not close when the remote folder is removed