catch browserify exceptions