Added post-stop script support.