Determine what ran Deinit(): symbol changed, time period changed, or EA removed from chart.

 
Deinit() runs when the chart symbol is changed, time period is changed, or the EA removed from the chart. Is there a way to determine what caused Deinit to run? I have objects on my chart I want removed when the EA is removed but I want them to remain if the symbol or time period is changed.
Reason: