Handle session create error
Tidying