ws: Only close open child_fd
ws: Only close open child_fd

Suggested by Coverity

Closes #4919
Reviewed-by: Lars Karlitski <3318dc5ce3e4fb7c28a0b841b6801c884e1d0896@uebernic.de>

andreasn/cockpit,xhad/cockpit,dperpeet/cockpit,cockpituous/cockpit,cockpituous/cockpit,andreasn/cockpit,sgallagher/cockpit,Scribery/cockpit,petervo/cockpit,larsu/cockpit,xhad/cockpit,mvollmer/cockpit,stefwalter/cockpit,martinpitt/cockpit,deryni/cockpit,mvollmer/cockpit,larskarlitski/cockpit,andreasn/cockpit,petervo/cockpit,dperpeet/cockpit,sgallagher/cockpit,arilivigni/cockpit,petervo/cockpit,deryni/cockpit,harishanand95/cockpit,arilivigni/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,larsu/cockpit,cockpituous/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,larsu/cockpit,andreasn/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,stefwalter/cockpit,xhad/cockpit,garrett/cockpit,vanloswang/cockpit,SotolitoLabs/cockpit,vanloswang/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,garrett/cockpit,harishanand95/cockpit,dperpeet/cockpit,vanloswang/cockpit,deryni/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,xhad/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,mvollmer/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,mvollmer/cockpit,mareklibra/cockpit,cockpit-project/cockpit,sgallagher/cockpit,andreasn/cockpit,moraleslazaro/cockpit,dperpeet/cockpit,stefwalter/cockpit,sgallagher/cockpit,vanloswang/cockpit,mvollmer/cockpit,larsu/cockpit,larsu/cockpit,xhad/cockpit,arilivigni/cockpit,deryni/cockpit,Scribery/cockpit,larskarlitski/cockpit,cockpit-project/cockpit,SotolitoLabs/cockpit,deryni/cockpit,stefwalter/cockpit,dperpeet/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,michalskrivanek/cockpit,andreasn/cockpit,vanloswang/cockpit,harishanand95/cockpit,Scribery/cockpit,garrett/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,garrett/cockpit,petervo/cockpit,mareklibra/cockpit,xhad/cockpit,petervo/cockpit,SotolitoLabs/cockpit,larskarlitski/cockpit,deryni/cockpit,dperpeet/cockpit,Scribery/cockpit,stefwalter/cockpit,garrett/cockpit,harishanand95/cockpit,andreasn/cockpit,larskarlitski/cockpit,larskarlitski/cockpit,larsu/cockpit,petervo/cockpit,arilivigni/cockpit,cockpituous/cockpit,vanloswang/cockpit,xhad/cockpit,arilivigni/cockpit,sgallagher/cockpit,martinpitt/cockpit,harishanand95/cockpit,Scribery/cockpit,Scribery/cockpit,cockpituous/cockpit,arilivigni/cockpit,arilivigni/cockpit,cockpit-project/cockpit,harishanand95/cockpit,sgallagher/cockpit,Scribery/cockpit,michalskrivanek/cockpit,dperpeet/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,petervo/cockpit,michalskrivanek/cockpit,vanloswang/cockpit,deryni/cockpit