refactor logging.error + exit -> fatal()