Add a few drops of lemon juice.
The lemon juice prevents the sugar from "clumping" during cooking, that is, from crystallizing when heated. In that case, it would be difficult to salvage. However, if the pan is thoroughly clean, the sugar is free of impurities, and the caramel isn’t stirred too much while cooking, the lemon isn’t absolutely necessary.