Handle Exception for calls into PIL as it can throw unusual errors.