finalizeSession.RdFunction to call for finalizing the R session. When called, all registered "onSessionExit" hooks
(functions) are called. To define such hooks, use the
onSessionExit() function.
This method should not be used by the user.
# Default S3 method
finalizeSession(...)Returns (invisibly) the hooks successfully called.