Yes, the thread exits when rd.readpartial raises.