Delete byproducts on cleanup if sync() fails