handle destroyed instances