             
         else
         {
-            viewPlot.stopLoading()
+            finishLoading()
             
             return
         }

        else
        {
            UIGraphicsEndImageContext()
            viewPlot.stopLoading()
            
            return
        }

        else
        {
            UIGraphicsEndImageContext()
            finishLoading()
            
            return
        }
