#468 Close on select does not respect local declarations
Merge pull request #469 from phxdatasec/bug-closeSelect

#468 Close on select does not respect local declarations