Changed error if connection has not been established