Fix hidding of poll publisher for close action

ref: #5029