Separate ping lifetime from beacons. 

Fixes #5424.