[bug] Handling child clients disconnection on main client disconnect
Adding test for disconnect event and some more refactoring on this topic