Session handle refactor.