note that PPI::Document->new can also throw exceptions