fix handling exception with no message.