src/main/java/com/feedzai/fos/impl/weka/WekaManager.java
@Override
    public synchronized void close() throws FOSException {
        acceptThreadRunning = false;
        if (scorerHandler != null) {
            scorerHandler.close();
        }

        IOUtils.closeQuietly(serverSocket);
        saveConfiguration();
    }
@Override
    public synchronized void close() throws FOSException {
        acceptThreadRunning = false;
        if (scorerHandler != null) {
            scorerHandler.close();
        }

        IOUtils.closeQuietly(serverSocket);
        saveConfiguration();
    }
Will save the configuration to file.

@throws FOSException when there are IO problems writing the configuration to file