Set server mode before installing console listener
Merge pull request #100 from glguy/mode-before-console

Mode before console