added error viewing

added messagebox when can't connect to comport