catche exception on session creation