Handle NumberFormatExceptions.