Stop receive thread from busy looping