What is the event triggered for imap.end()?
<p>I am using the <strong>node-imap</strong> module (<a href="https://github.com/mscdex/node-imap" rel="nofollow noreferrer">https://github.com/mscdex/node-imap</a>). I want to close the connection to the mail server using the API function 
<code>imap.end()</code>. What event should I listen to for the result.
I tried to listen for the 'end' event but it never occurred.</p>