[TIMOB-13335] Fixed exceptions not exiting the callstack properly