close when ping error