'Override `stop` method to properly exit JMXFetch.'

def stop(self):

    if ((self._proc is not None) and self._proc.is_running()):
        JMXFiles.write_exit_file()
        try:
            self._proc.wait(timeout=self._JMX_STOP_TIMEOUT)
        except psutil.TimeoutExpired:
            log.debug("JMXFetch    process    didn't    stop    after    %ss,    killing    it", self._JMX_STOP_TIMEOUT)
    super(JMXFetchProcess, self).stop()
