Handle all exceptions uniformly.