clean up and auto-close when opening explorer