added explicit swiftmailer flush after ConsoleEvents::TERMINATE