remove unnecessary printStackTrace exception handler for Scala codegen