finish all scopes