Fix cleanup for .restore leftovers.