Close inactive sessions

Or we can make it a static thread