invalidate statement cache on connection error