Improved message controller logic, catches twilio message errors