[Bug 838000] use callbacks instead of return value to handle activity failure