Added destructor to close the imap connection.