handle EmptyPipe