Aborting when /dev/sda fails to open isnt ideal. Instead it should interpret the parted error and either skip or report "Nothing loaded" for the media
Now skips the drive.