I have no idea what the embedapp command is or what its meant to be used for in reguards to IG. What version of IG are you running? Ive never had any problems with it closing on its own. But ive also been without my carputer for a couple months now i think and havnt been using it heavily with the latest RR. Are you changing any settings in the Opt (Options) screen after IG is loaded? Some settings you change require the skin to be reloaded and thus embeded apps will close. Anytime you hear the startup sound the skin has just finished reloading.
Once the database plugin is finished ill take a look at it and evaluate if its a fit for the skin.