Using log.Fatal

log.Fatal does not only log the error to the console it also calls os.Exit(1) terminating the process with a status code of 1 which is the convention for abnormal termination.