JobObject dispose made more robust