added support for disconnecting;
disconnect