Take out thread remnants