Exit code 5 from "cryptsetup luksClose" means the device is busy:
https://code.google.com/p/cryptsetup/issues/detail?id=100
So we should just retry on that until it detaches or we timeout.
Exit code 5 from "cryptsetup luksClose" means the device is busy:
https:/ /code.google. com/p/cryptsetu p/issues/ detail? id=100
So we should just retry on that until it detaches or we timeout.