close smtp connection