Bug 1112649 - Fix printing out exceptions on console