Added disconnect confirmation; fixed #41