Add a check to exit gracefully if no block devices are found.