Client destroy function