safe ping handling