Fix #2475 : resources not cleaned on ClientProxy.destroy