Changes to use of handles

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).