Fixed major bug. Now it stops hadoop only when initHadoop has been defined.
Fixed major bug. Now it stops hadoop only when initHadoop has been defined.


Former-commit-id: af819dfa91ae50f2bc70f9060eb95767dd071775
manthanhd/gravity,manthanhd/gravity,manthanhd/gravity,manthanhd/gravity,manthanhd/gravity,manthanhd/gravity,manthanhd/gravity,manthanhd/gravity,manthanhd/gravity