Rename `terminate` to `terminate-process`
to avoid a name conflict with an SBCL macro.
Remove unused code.
Use actual APIs instead of deprecated ones.