Do not crash if a file does not exist

This checks for the case and shows an error rather than crashing