Handle exceptions from Magick++ calls.