Improved the settings window of a connection

On closing the window, no exception is thrown
if a password check is actually running.