sender: support elegant stop

fixes #1712