Added setup and tear down of Curses to the UI class.