Maybe we just want to flush directly here and then just wait 1 or 2 seconds and call `process.exit()` afterwards.