Add a brief sleep after shutting down sessions in test teardown

This fixes a test failure for me on my Windows VM. See the comment for details.