add catching of std::exception