Fix bug where getDependency doesn't not halt execution when an error is detected