Clean up some routine stuff like pings, and stop keeping links open forever even if there are no frames passing between them.