added session remove to main threads