Adding connection close listener to close and reopen connection after each test