handle geometry exceptions