public void close() {
        try {
            this.bufferWriter.close();
        } catch (IOException ex) {
            System.out.println(ex);
            for (StackTraceElement el : ex.getStackTrace()) {
                System.out.println(el);
            }
        }
    }