The variable err was not defined in this instance.

This was causing the client to crash on actuation.