Setting global namespace scope on exception