both: added removePendingInterest and removeRegisteredPrefix in destructor