Added support for success flag when an action or script is stopped