fix attempt for issue #3592 by closing instances at startup
Merge pull request #3626 from serkan-ozal/fix/master/issue-3592

fix attempt for issue #3592 by closing instances at startup