make notify return error code on timeout (#9193)