Fix socket leak in pinger