try restarting properly on ping timeouts

No idea if this actually works, of course, but let's close #8