Stops exceptions being swallowed.