LUA connector fails after a stream is stopped

if this works out for me, you’ll have my blessing and a cup of beer!

applied into dev - will report back. thanks for your effort for now