discovery fix redundant open/close - issue #2