Improvements for Windows session disposal.