Renamed ClientThread to JoinJamThread. Change call to Thread.sleep to joinJamThread.join(), much less hacky.