crash fix, add try catch block
Merge branch 'master' of github.com:Light-Keeper/CAD_Coursework