Modified exception catching - removed printing of stack traces.