Made the twilio error handling seperate.