Complete rewrite of threading
Much more stable. Thanks to Lord_Ralex on #bukkitdev for guidance.