Catch uncaught exceptions and added guard to prevent infinite loop
- Catch CoreASMErrors within executeTree and redirect them to the capi

Change-Id: Icab6c91f386a9d522d013b7a261196f4c19a1bdc
Signed-off-by: mstegmaier <michael-1.stegmaier@uni-ulm.de>