Hi @emfluenceindia,
Yes, I agree with you that this approach is not ideal - I just don’t know what other options you have at this stage of where the technology is at. I think your best bet if you’d like to continue moving forward with this skill is to engineer the heck out of it to try to avoid, handle, and/or recover from errors. Essentially, turn those “Unexpected” errors into ones your code knows about and can process. One example may be to have an intent where you can ask Alexa, “What was the last note that you heard?” in order to let the user pick up at the right place. Maybe you could also set a flag at the top level of your user database called successfullyClosed which you set to true when you exit the skill cleanly. If you open the skill and this flag is false (and it’s not the first use), you know that you probably are in an error condition.
Do you have any idea why (and how often) the skill is stopping unexpectedly? I have found that many errors are avoidable and these are the ones I try to eliminate (e.g. intent handlers not firing because the skill is in a different state, slot values not being valid, etc.). However, when I test on a slow internet connection I have had skills just stop for no apparent reason. Just trying to figure out what you’re dealing with and if you’ve found the root cause of the errors.
Anyway, hope this helps…