actions client err capture onerror, cleanup syntax for strict mode