Capture jasmine exceptions