Added try/except EOFError, to care about "CTRL-D", sign out/quit-signal.