Added a try exception clause to catch any exeptions that are not caught by the other try except clauses