Add exception handling for validations.

should be:

require 'new_relic/agent'