abort artifact if plugin installation fails

Fixes #2186