Chromium tried to close our pipes and falls into infinity loop.

If return value of close() is -1, chromium will fall into infinity loop.