I had this problem with veracrypt unable to mount the container saying the device or resource is busy.
What helped was to run:
cryptsetup close veracrypt1
(veracrypt1 being the mountpoint name and maybe need to prefix with "sudo" if not in root terminal session)