Don't crash when a block device can't be created.
Merge pull request #2574 from unknownbrackets/bad-file-crash

Don't crash when a block device can't be created