Console App Not Flushing To Logs On Cancel

When I’m testing a console script and I cancel halfway through its not pushing anything to the log files.

I think its to do with the Target::exportInterval and the Log::flushInterval being set to 1000 and that its not running the flush() method (on register_shutdown) that it should.