make sure our referenced items get destroyed with us