Fix #849 by making sure no references to the DecodeTrace instance remain