added catch for situations where we drop connection to repository