Stop wasting a thread