Adding code to help me debug #244: "Exception: "error: can't start new thread""