When closing Surfer, wipe the buffer