Shutdown termbox on exception.
Only accept alphanumeric query str.