SMTP QUIT only if a stream is available.