Preserve databases that could not be opened and pop up message for the user.

[#52494241]