When Unraid stops a container, it asks politely first and forces it after a wait. The wait is Settings, Docker, Docker Stop Timeout (seconds), and a default of 10 seconds is short for a busy database.
A database that is killed mid-write can need recovery at the next start, or worse. This matters most when you stop the whole array, reboot, or when a backup tool stops containers one by one.
Set a value that covers your slowest app. Thirty to sixty seconds is a reasonable place to start. Then time a stop to see what an app really needs:
time docker stop my-database
Unraid’s own shutdown time-out under Disk Settings is a different setting and should stay longer than all your containers together need.
Further reading: Unraid docs: Docker overview