quit the connection if it fails a ping test