Added try exception blocks to functions that throw exceptions
Added try exception blocks to functions that throw exceptions