cleaning out the curses stuff until it is needed.
trying to fix up the autocleanup on process termination.