suggest that you move the yield to above line 405.  We yield the crash_id and then only after it has been successfully used (the client has invoked the iterator again) do we delete the symlinks.