Do you have FileMaker advanced?
If so, you can replace the Close action in the file menu with a script you write that will check to see if the file should be closed. I don't think this will keep a user from exiting Filemaker all together however. I don't know if that is even possible. It's definitely unusual.
a simple halt script works believe it or not!