Changing exception handling to conform to the proposal
Making sure using non-active task_region_handle causes exceptions