Remove calls to os.Exit