Replaced logging messages with calls to Fatalf, which is equivalent to
Printf() followed by a call to os.Exit(1).