End curses window on exception; screen doesn't get all messed up on a non-clean exit