How can I stop a program from logging data into an SD card?

Wow, this is great stuff!! thank you so much. I will report back once I have implemented your inputs.

Very much appreciated!