remove while waiting in clientthread