added some logging.
Moved phantom call inside the pipe file open block.