If you need to know if a sub completes successfully, then change it to a function that returns a Boolean, and test it in the calling sub.