Abort other threads when program ends.
Implemented additional threading API functions.