added try/catch blocks to install

added try/catch blocks to install