fix for swallowed exception while creating execution context