catch exceptions also from the computation itself
refactoring (exceptions to be added later)