Handle JDBC4 Connection.isValid properly after the proxy has detached.