replace Environment.Exit