Return SMTP factory so the client can stop it.