Made the receiving thread a daemon.
This means the whole program can be quit with ctrl-c but does lead to an exception being thrown on exit.