Add error if connection fails