added logic to  write out the last.dump.rda file, if it exists, to hdfs if an error occurs
fixed a typo