Add commonKmailFooter functionality.
Add socket.error handling.