Exit if there is any error reading from stdin.