Print error message and exit instead of raising exception.