Added handlign for exceptions and result execution