Added pre-stop script support