Properly stop collector and jmxfetch on windows