Added exception handling if processing file failed.