catch potential exceptions while parsing cstruct