In case of error, exit with 1.