CXX-40 fix for flaky scoped_db_conn_test

Add SetUp section which waits for listener
Move some shutdown logic into TearDown