also catch std::runtime_error, i.e. convergence of linear solver failed.