Implemented disconnectFromStream