I have seen exactly the same behaviour in case of network hard drive loosing connection causing the Kernel to make the filesystem read only. However, I don't really expect BaseX to manage this kind of case contrary to disk full situation.
Is what I’m seeing unique to my setup or do others see this?