Finally he abandoned his task, shaking his head gravely.
He gave up on his task.