Updating try/catch block in test environment setup so it now catches DBAL exceptions