Handle known exceptions better.