[PATCH v2 23/32] sandbox: sdl: Improve error handling