RemoteTaskRunner: Remove task from pendingTaskPayloads on shutdown if needed