Fixes for Log Code

It'll look neater on the Applet. Also, if an applet tries to connect to
an in-use port, it'll automatically stop itself.