Added a shutdown call for when pie charts are being removed