die() is only called from within a test. Given that message_cursor is a singleton always listening for current folder, it may not make sense to have it all. Or, it could be there, but maybe it is just a "reset" method that cleans up messagesSlice and nulls the current message/header. Then it could be used above in the onLatestFolder.