Restart bash if there are any errors

How is this for a workaround?
That should be impossible, because I pass timeout=None to run_command above. If TIMEOUT is raised, it's a bug, and I want to know about it.