He comes to realise the extent to which he has been corrupted by power. In a moment of realisation, Herne destroys the machine, thereby preventing his son from taking control after his death.
Herne's awareness of his corrupting influence leads him to destroy the machine, preventing his son from taking over after his death.