Function
terminate
Terminate the session, optionally providing a reason. is-active will return false after termination.
Data associated with the terminated session is NOT deleted. Use delete() to remove all session data.
Subsequent calls will have no effect.
terminate: func(reason: option<string>) -> result<_, session-error>;