use do_retries so that exceptions other then AssertionError get handled as well