Basically I am looking for a program that ideally has a password in order to close it.

For example you can only close a program after spending a set time amount in the program.

Or requires a password to close it.