You almost had it right,
Bypass the unit.
Start cleaning cycle.
System will depressurize ie no more water to drain.
Then unplug unit
Now start unscrewing the strainer housing.
If you can not bypass, then find a ball or gate valve before the system and close it and then open the cold side of any sink and that will depressurize the system that you will need to work on.