Allow clean disconnect