Fix runtime exception and indent error. Also close threads on exit.
Change port number.