Added error handling in getCircle method.