catch a bunch of exceptions

coverity complained about uncaught boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_any_cast> >