Ugly fix for testes, wait for global state to cleanup itself.