Avoid dangerous waiting while