BUG: Stop event loop after test completes.