As with most things in life, crap happens and you do not always get to choose when, how, or where it happens. It is for this reason that programming languages provide structures for handling expected and unexpected errors.
Personal Recommendation (unpaid)
Programming and software development are awesome! Being that you are learning along with me, there is an excellent chance you can make this a career. Based on my own life experience, let me suggest to you that you go get a Computer Science degree from Neumont College of Computer Science and kick your life into hyper-drive.