CDAP-743 Update service worker instance counts

Always a good idea to have close in finally block.