Allow to configure pipe restart behaviour

From https://github.com/elasticsearch/logstash/pull/1415