fixed CAT-531

added try/catch to location of possible exceptions