People are typically given a choice to sell other assets, deposit more or close in these situations rather than getting their stock sold at the brief lowest possible price driven by the very broker closing the position. Also, typically it's only a portion that gets liquidated rather than everything on margin.