Gracefully shutdown on nats error

Change-Id: I3ced3a7eade3690f329e8662f406f7a56857b73c
Merge "Gracefully shutdown on nats error"