Stops exceptions being swallowed

Replication case can be found here:

https://github.com/davidbanham/swallowed/blob/master/wtf.js