Got some tests to pass. Fixed printout of thread exiting