Catch exception if chart is destroyed.