Signal and log errors when bundling

When browserify fails with an error, log the error and signal to karma that something went wrong.