Fix lost connections: rollback to $_ENV