Cleanup latex junk on exit or buffer delete