Finish execution context and scope