Added proper joining of threads on disconnect and on termination of the program.
Added proper joining of threads on disconnect and on termination of the program.

jojonas/SyncedMusic2014,jojonas/SyncedMusic2014