It gets called whenever you hit the deploy button (and that node is affected by the deploy) or ctrl-c - ie whenever that node is stopped - at which point it should tidy up any "old" connections ready to be started again.
1 Like