only mark as processed if everything is done
make log messages more clear