osd: add changes missing from recent 393988c274 (exit crash)