add error logging with aws sns