Change method of catching signals and include SIGTERM.
New way to end script.