added support for terminate_after elasticsearch/elasticsearch#6885

fix https://github.com/elasticsearch/elasticsearch-net/issues/1107