Changed exit to exit out of all threads