Fix premature session invalidation.
Accommodate move of connection attributes from session to execution.