Move the peer_down handling to sender_death, since that's when the slave really
gives up on a sender.

Transplant of 55f7c6afabe0
Merged bug25524 into stable
Merged stable into default