safer dtor in nodelet