Session Cleanup Patch.