Add a new API call for creating detached threads. Then, go replace all of the