Pass error message when unexpected error occurs

Add another Unity event for passing error message for backward compatibility.