I noticed something. When the session restore on login fails, in the previous session closure I notice that the Firefox window, which is on workspace 3, jumps to workspace 1 for an instant, then the session closes. This matches the idea I found on internet, that "This apparently happens when xfce4 has trouble shutting down a session". I also suspect that the problem happens when I click on "restart machine", and not when I click "log out". At least, I clicked six times on log out, and it did not happen.