When running the testmail command, Vikunja would not stop if it wasn't able to connect to the mail server. This was a regression from 950de7c954. This change fixes that problem. Resolves https://kolaente.dev/vikunja/vikunja/issues/2767
950de7c954