handle install error. When error, exit