abort artifact if plugin installation fails

Closes #2174 

Uses the same strategy as https://github.com/elasticsearch/logstash/blob/master/rakelib/vendor.rake#L254