redirect yum_loop stderr to logfile, catch error and return ret