SMTP-Client: on termination we need to determine whether we're in DB-IO or Socket...