Try to log exceptions in IoThread (#14899)
Summary of the issue:
I'm still seeing access violations in the IoThread here and there, same for @bramd. I really want to track these down! We need to handle those more gracefully anyway.
Description of user facing changes
Better logging
Description of development approach
De run block of the IOThread is now wrapped in a try/except that logs the stack. I hope the stack will give us more info about what's going wrong here.