add notify to main on timeout