Added better error handling to the installer.