Add rudimentary ping timeout handling