Correctly handle the timeout for pipe creation