exception handling for RDD reduces