public void shutdown() {
        running = false;
    }
Selector.open() can throw a NPE in java6 because of missing synchronization.
http://bugs.java.com/view_bug.do?bug_id=6427854
lts-core/src/main/java/com/github/ltsopensource/nio/loop/NioSelectorLoop.java