gracefully handle ExitStatus exception in async main loops