feat: cancel build on error

This uses new preprocessor API introduced in Karma 0.11.14.