fixed error report on connect failuer