Tidied up some error handling
Merge branch 'master' of github.com:kls2510/UROPTestingSystem