handle install error. When error, exit
Merge pull request #7 from zerdliu/master

handle install error. When error, exit