added more ROOT exception handling