remove sync() from prepareForStop(), can't use if not using deferred writes