Update to error handling for alert sending