Allows to add terminal state listeners to a Session.
Adds a listener which will be invoked when a Session is cancelled.
Adds a listener which will be invoked when a Session fails.
Adds a listener which will be invoked when a Session succeeds.