Merge pull request #59 from lnussel/master

fix shutdown
restore confirm license code