Added transaction safety to SMS-sending