Experiment: Use sync write in process exit handler.