this will block till the sending thread is done.