XD-1953 Handle undeploy modules upon container shutdown

- When the container process is shutdown, the `Stream/JobModuleWatcher` in
ContainerRegistrar process `Stream/JobDeploymentsPath` node deleted event.
In this case, it triggers undeployment of all the corresponding modules.
But, by the time the undeployment happens the module context is already
closed.
- The fix checks if the module context is active when any of the
Module getComponent() is invoked.
- Fix JobModuleWatcher catch clause to catch `Exception` instead of `KeeperException`
 and subsequently check for Curator STARTED state
Yeah, I saw it as well. The reason I added the same logic here is to be in sync with how this is handled in getComponent(String beanName, Class<T> requiredType)