Engine now closes when mailbox factory is closed