fix a bug with the IMAP multiplexer clean up routine
close imap servers when the page exists