Closes Secure Storage shell if opened during RepoConnectionDialogTest. Fixess #840