Handle if server disconnects while email message contents are being sent.
Tidy whitespace a little.