Exit when stdin is ended.