Trapping KeyboardInterrupt and EOFError for program cleanup | Hacker News Reader