>is there any utility that allows me to automatically backup my tables every after shutdown of my application, and restore it if the last shutdown was not successful?
I would recommend you do the backup at midnight, when (probably) no users, or few users, are using the system.
You can also copy data files (DBF and related) when users are using the application - the files are not completely locked by the OS - but I would suspect that that sort of backup is less reliable. At Bata/Bolivia, I did it anyway, just in case - one backup around midnight, one around noon.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)