Added error handling to yggdrasil sessions