rm try..catch in HMMSegment