Remove ping thread and references