WIP
fixes #2039 . Decrements pending tasks in case of RejectedExecution Exception
Merge pull request #2050 from sancar/fix/executorPendingStats/maint3.x

Fix/executor pending stats/maint3.x