Tutorial/Code Protected Terminate Program

This tutorial will show you how to create a program that can be called to terminate the existing program.

Reason To Use
As you may very well know, terminating using CTRL+T is an easy way to stop startup programs and for hackers to get into the rest of the programs on the computer. One way to stop that is to use the os.pullEvent = os.pullEventRaw in your code, but this could be a problem if you need to run the program for a test, and need to do maintenance on it! Here is a simple solution to your problem.

Code
Here is the code. If you are on a single player world, you can just put this into any existing program by going to /.minecraft/saves/[worldname]/computer/[programname] and editing it with notepad or notepad++. If you are doing this on a server, and you have access to the server's files, make a program, and go to /[serverdirectory]/[worldname]/computer/[computernumber]/[programname] and copy the code over it. Else, this will need to be typed directly into the console. Now onto the code.

That code should be put into a program named something like terminate, which I will use in my example.

Here is how you could lock the program: