public class BlockExitSecurityManager
A custom SecurityManager to enable catching System.exit() calls and throwing an exception instead.
Since the SecurityManager is being deprecated in Java 17, it will not be used by default but can
be invoked by 'PythonSecurityManager.blockSystemExitCalls()'.
Blocks System.exit() calls from exiting the JVM and instead throws a
SecurityException in its place. This is useful when running a JVM through an
interactive interpreter such as Python so that individual commands to not cause the REPL
to exit. This will generate a WARNING message in Java 17, and must be explicitly allowed in
future JDK releases.