Wait until exit to write status caches