A possible chemical explanation for why we give up on tough tasks

Wait 5 sec.

When we engage our brains in a mentally taxing task, we eventually reach a point where we hit a wall or run on empty. Even when the rewards of finishing are obvious, we often find ourselves simply stopping. Exactly why this happens has long remained a mystery. We can easily point to tiredness or lack of motivation, but what is driving this disengagement at a biological level?