make sure the console_type can raise exceptions and they will be forwarded to main thread, update #997