exit 1 when an action fails