Need to add exit 1 after logging the error