feat($state): sync last known good url back on fail

Closes #273, #242