Add assertions for the received GIOContion on the close of the pipe.