Why not just close the client and set it to null?