Added proper joining of threads on disconnect and on termination of the program.
Merge branch 'master' of https://github.com/jojonas/SyncedMusic2014.git