better handling of disk write failures / improvements for cache consistency