finish simple queued tcp server/client