Naturally the question may arise, was the save dialog already displayed when Windows went to sleep? The answer is I don't know, but even if it was, I think it's still a bug. It is a bug because protecting the info from snooping (if somebody other than the owner wakes it) has higher priority than saving the changes to the DB file. If the dialog was already displayed, it should be dismissed automatically (programmatically) in order to lock the database. If the program is capable of locking the DB then...
Unsaved database does not auto lock
Initial commit