Free up memory during inference so we don't build up a ton of memory before GC. Also, MH now backs out early if it encounters a zero probability partial trace.