Proper shutdownhook

Now properly closes both emitter and socket on hard shutdown. Also
includes latest snapshot of JmDNS.jar.
Merge pull request #10 from csholmq/master

Some finishing touches. Improves performance on Linux.