Modified message to show to the user in case of cancel task due to max
retries exceeded.
Improved logging messaging for retries messages
Fixed error in get values in case of max retries exceeded