Exit process if error passed to broadcast

Fixes #519