waiting for servers to close before marking test as ended