mailbox.close flushes only messages with a different mailbox factory