catch only Exceptions, not errors.