You are human. You have come this far and you will get through it. Let yourself melt down for a minute and then pick yourself back up and focus on what you need to do today. Don't think of the entire semester right now, just take it one week at at time. This experience will make you stronger. Don't be so hard on yourself, you are almost to the end.