termbox: Close termbox before panicing