Used a termination token to terminate ResultThread safely