SCI: fix for heap corruption during lsl3 ending