issue #5: catch exceptions raised during numerical computation