raise error and log when no file can be written to STORAGE_FILESYSTEM_DI...

...RECTORY
guess we need to close the file before removing it (for windows at least)