You ask for this closure cend-cstart times, but only seem to restore it once.  Is that deliberate?