Fix #14: use proper PRG pattern.
Safety; flush all session when creating new one.