use trap to send a cancel-command to control_mode when xmpp --next-msg is interrupted.
Upgrading version to 1.2.0 (delete fifos on exit; cancel --next-msg if calling xmpp is killed)
Upgrading version to 1.2.1-dev