Refactor member order of classes. Redesign close logic of
NioSessionProcessor.