Catch std::exception from libreoffice and report

e.g. std::bad_alloc