fix server bug

when pipe listen fail, it will enter a dead loop