handle exceptions in model code better while alerting. fixes when alerting stops working