Session: implemented WaitForAllPendingActions and Dispose