DNode: added method cleanup()