Try resizing the browser window after destroying the grid/list, to ensure no event handlers are left dangling that cause errors. Also check to make sure there are no widgets (count of 0) after they are destroyed.