Calls log.Close() now if erroring.