I do something very similar...I have a timer looking at 2 .txt files on the server. If one .txt exists it opens a form on the front end telling the user the database will be shutting down in XX minutes. If the second .txt exists it boots everybody out. It might be a little rough but it works great.
BTW, another CAD user here also!
BTW, another CAD user here also!