protects against bad port numbers coming in, such as the case reported in issue #25
partly reverting pull request #16, since we need some sort of SLF4J implementation in the standalone mode. Need to think about this some more, but at least by splitting out the two then Anton (contributor of #16) can selectively ignore slf4j-jdk14 from the dependencies that get pulled in by maven.