Slightly more robust task runner