added try/catch to mysql provider connect routine