change log.fatal to log.panic