try save and restore context, still memory problem with exception and freeing base_stack_frame