Fix #2475 : resources not cleaned on ClientProxy.destroy

Fixes #2475