If I close the whole window, then the individial views in that window does not have the on_close event invoked for them. As plugin data can be associated with specific views and freed upon getting the on_close event, this would make the memory normally freed still be allocating space.