Roll back the session when re-editing.

In case the problem had something to do with the database, the session
context is restored.