Fixing race condition on close.  Since we're checking that connections are all checked in after every test, there is
a race because the close method asynchronously kills the cursor and has a connection in use until it completes.