Mark session as "dirty" until it is saved when last window closes