Fix console messaging
Ensure console writes happen in the right thread