log error and exit if not int. #410