Allright, I'll edit the script to only check for secure mode, and when it finds the server insecure, it will connect to server with rcon and shut it down.
---
Only one question left, how to launch the script every minute or so?
If that isn't possible, I can always make a link in my server's motd to the script, but that isn't very neat