Exceptions inherit from StandardError instead of Exception

Makes exception handling easier, since rescuing from StandardError
is safer than rescuing from Exception.