Added callback that gets called when a connection is closed. Allows SMTP server to keep track of number of concurrent open connections.

Added callback that gets called when a connection is closed. Allows SMTP server to keep track of number of concurrent open connections.