separate one try/catch into two blocks during file_appender destructor
Cleanup all async tasks on exit, thread safety, work in progress.