Avoid showing dialog for a crash