Add option to cancel the current build

This comes in handy on CI servers as we regularly ended up in situations where people missed jshint errors.