hi brad,
it seems appropriate to me that if the application has trouble loading the layer (because the URL is not declared correctly), that the layer won't be added successfully and the onLayersAddResult event isn't going to be triggered. the reason for the hang is because your web browser is attempting to access a resource which it temporarily can't decide exists.
what would be the reason for supplying a bad path?