adding NoSuchObjectException handler