Replaced call to deprecated NSRunCriticalAlertPanel API