Make sure any exceptions in task_queue thread are logged