Print the traceback when an exception happens.