Properly clean up after views