protecting code

Try catch blocks on iffy stuff