Hi euless
I don't know anything about LUKS or encrypted drives, so the
following is pure speculation.
While it's possible that LUKS uses a journal (like EXT4) to allow
it to recover in case of a crash or power failure, it's always best
not to tempt fate and close the container when done.
A normal shutdown closes all files and unmounts all drives. This
will force any data still being buffered in RAM to be written out
to the drive. Whether this includes LUKS containers, I don't know.
If you open /opt/shutdown.sh you can add your cryptsetup close
command right after where it says:
# put user shutdown commands here
/opt/shutdown.sh gets called regardless of whether you use the Exit
icon to shut down or the command line to shut down:
exitcheck.sh shutdown