Updated receivethread: reset overlapped structure inside thread