Ending your study (either because you voluntarily withdrew or you were terminated for academic reasons) should not affect further immigration actions, provided you timely leave (they like you gone within 30 days) rather than accuring a lot of illegal presence.

