Catch exceptions.
This shouldn't happen but might anyways if libkolabxml is i.e. compiled without exceptions support.