Add some startup debug and also option to turn off socket