fix: Handle error while session start (backport #12933) (#12934)
fix: Handle error while session start (backport #12933) (#12934)

- The occurs randomly at the time of boot

(cherry picked from commit 87d8666c60bfdf3ea6c1ef375a99cb9db8bd3a2c)

Co-authored-by: Suraj Shetty <c1fab1cf28e7dcca05cc07266aa459291053d3da@users.noreply.github.com>
almeidapaulopt/frappe,yashodhank/frappe,yashodhank/frappe,mhbu50/frappe,yashodhank/frappe,saurabh6790/frappe,almeidapaulopt/frappe,mhbu50/frappe,saurabh6790/frappe,saurabh6790/frappe,mhbu50/frappe,frappe/frappe,StrellaGroup/frappe,mhbu50/frappe,StrellaGroup/frappe,StrellaGroup/frappe,almeidapaulopt/frappe,frappe/frappe,almeidapaulopt/frappe,yashodhank/frappe,frappe/frappe,saurabh6790/frappe