put die statements back
update to changed API of gh:mscdex/imap