Added Guard in the recycle task

Apparently there is risk of reentry in the recycle task, this mitigates
the problem.