Un-commanded restart when connecting/disconnecting switch