Add error handling to session create