preserve the context when re-connecting a client in interactive mode