Added exception handling to backup of files