Retry on connection attempts, and ensure DB is always destroyed