error with sender, finished writing sender and receiver clients