Fixed some issues when sending SMS
Force exit when there are errors