adding return statement for connection pool errors