- Fixed looping issue
- Fixed so that all threads terminate when calling program completes