Fixed a bug where threads would automatically exit