Family Dollar to close nearly 400 stores