Replace task::try with Thread::spawn/join