class ExtensionSecurityManager extends SecurityManager {

  @Override
  public void checkExit(final int status) {
    if (inUdfExecution()) {
      throw new SecurityException("A UDF attempted to call System.exit");
    }
    super.checkExit(status);
  }

  private  ExtensionSecurityManager();

}