Change default script exit mode to exit script not exit process