Add extra ifs for backend unexpected exit