set error exit code to 1 when set domain fails