Catching exceptions when _getexif is called