cancelThread - cancel thread through ping(), dev.