Fix some memory leaks if SDDM is closed when a session is running