@Override
    public void close() {
        try {
            this.checkConnectionTask.cancel();
            if (this.listener != null) {
                this.listener.close();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
An implementation of {@link Messenger} using Postgres.
common/src/main/java/me/lucko/luckperms/common/messaging/postgres/PostgresMessenger.java