Add a test to check reopening connections after an error