Some small changes to IO behaviour.

Skip reading from STDIN (which might might be closed) and print "Bye Bye" to
stderr (to prevent it from being mingled with the output stream).
Merge pull request #4 from solidsnack/master

Changes to use of handles