Fix bug that causes the entire app to close(segmentation fault) when trying to close a single plot.