added error detection to removed product

added try catch and error messages