diff --git a/src/service/service/ServiceServiceServicerImpl.py b/src/service/service/ServiceServiceServicerImpl.py
index 6ce54966640ed1714dd4d85a5e9dd29531fa1616..bf152027037af46283c0901f0701ffb83d8a508e 100644
--- a/src/service/service/ServiceServiceServicerImpl.py
+++ b/src/service/service/ServiceServiceServicerImpl.py
@@ -116,9 +116,10 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
             else:
                 pathcomp_request.k_disjoint_path.num_disjoint = num_disjoint_paths
 
-            pathcomp = PathCompClient()
             LOGGER.info('pathcomp_request={:s}'.format(grpc_message_to_json_string(pathcomp_request)))
+            pathcomp = PathCompClient()
             pathcomp_reply = pathcomp.Compute(pathcomp_request)
+            pathcomp.close()
             LOGGER.info('pathcomp_reply={:s}'.format(grpc_message_to_json_string(pathcomp_reply)))
 
             # Feed TaskScheduler with this path computation reply. TaskScheduler identifies inter-dependencies among