close logstash conn on stop