With EC2 you’d want to make sure the services shuts down rather than is killed. Probably if you’re using a service this will happen.
You should also ensure that you create a task to backup the database, unlike OrientDB both SQL databases can produce a consistent backup while the system is running.