bugfix/lua Fixed a bug when a net.box connection remained active after being closed from the connection's on_connect trigger (gh-9827).