Improved exception checking and handling.