If your sugar begins to crystalize, don't panic! This does not necessarily mean your caramel is ruined. If this happens early on in the cooking process, just continue stirring while it cooks and it will likely melt again. If it's too far into the cooking process and the sugar is already caramelized, it will likely be too late to bring back to a liquid state without burning it.