Catch RuntimeExceptions and output them as TL_ERROR message.