Fix socket desriptor leak on each client run