Rescue StandardError instead of Exception.