added shutdown hook to kill hadoop job