Fixed issue with polling dialog disappearing forever after being closed
once.