Fix integration test.

- Polled the startup of CCNG for quicker startup instead of unnecessary sleep
- Coped with NATS not killing itself properly