<!--- Provide a general summary of the issue in the Title above --> ## Expected Behaviour <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> The subscriber (queue-worker) and publisher (gateway) should not try to reconnect if the connection is being broken due to SIGTERM/SIGINT. ## Current Behaviour <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> Once #50 is merged they should both try to re-try during the period at which they are terminating. ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> <!--- or ideas how to implement the addition or change --> The watchdog implements similar logic, it could probably be adapted for use here: https://github.com/openfaas/faas/blob/master/watchdog/main.go#L86