unset xtrace context in correct place