[deploy] Make deploy script more universal
[deploy] Make deploy script more universal

- enhance shutdown step
- make process discovery container independent
- always remove resources folder regardless of being empty or not
b2ihealthcare/snow-owl-deploy