add shutdown on disconnect option