fixed termination of xmp client