Add disconnect functionality, update dependency