please remove grammar flaws from the following text.
One possible counter measurement against human errors could be to configure the system in such a way that whenever safety has been compromised, the system will be automatically shut down.
One possible countermeasure against human errors could be to configure the system in such a way that whenever safety has been compromised, the system will be automatically shut down.