is connected throws exception