Closes this Session (mandatory).

C# |
public void Close()

Closing the session will result in the session being terminated within the middleware. Once a session is closed, no further operations can be performed on the session and all outstanding results will be discarded.
Never call Close(...) during the execution of a callback method. This will result in a deadlock.
IMPORTANT NOTE: This call is mandatory. If you do not close the session, you will introduce a resource leak.