Prevent Ctrl-d (EOF) from causing chaos