Fix error handling of critical alerts