add connection pool error handler