Socket uniqueness check added