Added error handling in cases when UCS txt log has wrong format