fix stop build on auth error event