refactoring sample loop point memory to be in SampleFile, deleting all temp files on shutdown