add angular destroy callback