Use NS_OK to close stream copier and pump.