public static boolean checkProcessEnd(Process process) {
        try {
            logger.info("Process ends with exit value: " + process.exitValue());
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
        return true;
    }