can handle mysql conn failure issue