added shutdown hook to kill hadoop job

JobID.downgrade? what is the meaning behind this piece of code?