More informative exception handling.