Shutdown before reconnect