First stop sessions, then quit