Is there a way to close out other running databases?

Yes, I know. I’m using a script to open/close databases, but was never motivated to post it.

@Archimedes with Script: Open or close databases you could close and open databases in one go.