Yea SD cards dont like hard shutdowns. Always turn off the miner through the shutdown interface. This will be especially important with the Full Node update coming out soon.
Do you plan to have an API for this? I'd love to schedule a python or anything alike to do the "turn off" and combine it with an electricity timer for my power supply.