Try/catch blocks around code that is likely to run after the view has
been destroyed.