resampler: fixed clean-up on disconnect