set notice receiver to avoid messages on stdout
reuse w.data for storing Lua thread