[segmentation] bug fix: check that fftw plan exists before destroying