Prevent crash at session-close when analysing.