Throw specific Exception when closing

Description

When session is closing / closed and a new execution is issued, NoNodeAvailableException is thrown.

We could throw an explicit exception detailing that the session was closed, making it easier for users to understand what is happening.

Race conditions might still occur (closing while executing), but successive calls to execute would throw an clear exception.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Priority

Major
Configure