@Override
    public void shutdown() {
        FileUtil.setProtection(this.authuiSystemfilePath, true);
        FileUtil.setProtection(this.basebrdSystemfilePath, true);

        if (Files.exists(Constants.PROGRAM_TMP_PATH, LinkOption.NOFOLLOW_LINKS)) { // and deletes the temporary files.
            try {
                FileUtil.deleteDirectory(Constants.PROGRAM_TMP_PATH);
            } catch (IOException e) {
                ; // Nothing i can do here. If they are still there then they will be deleted if the program restarts.
            }
        }
    }