Catch cxxcam exceptions.