Auto close for checked components

Auto closing after (un)install when all checked components are
(un)installed
Additional tests for auto close
Merge pull request #57 from baSSiLL/auto-close-checked

Auto close for checked components