Revert "Handle IMAP errors a bit better"
Close is not always called because connections stay open.

This reverts commit 605f5e1f2ec194df2564e1cb64417d4aac2e415e.