Added try catch to find issue that sometimes occurs on shared objects