Send ping messages and disconnect from inactivity.