Wrote disconnect() method