Unfortunately, at the moment TheC64 doesn't write back to the cart image on a flash drive and only writes to RAM, so powering down will lose progress. Best to use save states as these work fine.
It is best that you complain to Retro Games and ask them to change the vice configuration on the firmware of TheC64.... I have been contacting them since the release. They have little to no interest in correcting this.