Improved scopeFinder error handling