catch failures on calculatios and set statue to failed, store traceback ...

...in error_message field, closes #381