Session recovery optimisation

Now can recover from crash, profile resume, etc.