Client closes when window closes.