added close on client object