There needs to be a consistent strategy to follow error handling within the resource detection code in case the code reaches unexpected conditions. As of now, all exceptions & unexpected conditions are either swallowed or simply ignored.