Changes to fix issue #240 which was preventing JMX stats collection when hadoop processes gets restarted