Improve file name handling and removal in CachedDataSink

Merged Samuel GAIST requested to merge data_improve_file_handling into master

This ensures that all files are tentatively removed.

It also adds warning about which file failed to be removed.

Merge request reports