Added URLClass exception handling