fix(download): update saveFiles (refs #4470)

Refactoring of fileManager to be more resilient

Add callback to handle save and download errors