Move JMXFetch logic in its own module and use PidFile tool to manage it