[Prolog-standard] current_input/1, stream_property/2, set_input/1 on a closed stream handle