disable poll when closed