properly destroy objects when called from associated object.

Fixed #162