Fixed a weird bug with Environment.Exit crashing?