Changed shutdown data save to synchronous (from multithreaded). Takes longer but guarantees all data gets saved.