Improved handling for destroyed views