You need to speak to your DSO at school and update the same information to him telling that you are leaving to your home country and could potentially not come back on F1 and seek his advice and options.
Status is what you need to maintain when you are in the USA. Read [Visa vs. Status in USA ](http://redbus2us.com/us-visa-vs-status-h1b-f1-l1b-visa-expired-i-94-valid-legal-stay/). When you leave US, it does not matter...So, when you leave, you need to ensure you are leaving maintaing proper status. To have your stuff correct, DSO should indicate that you are traveling in the SEVIS records for their records. So, consult the DSO.