improved RDP destructor