public void dispose() {
// As we have a listener we need to remove the listener
if ((myScopelistener != null) && (mySerial != null)) {
Serial tempSerial = mySerial;
mySerial = null;
tempSerial.removeListener(myScopelistener);
myScopelistener.dispose();
myScopelistener = null;
myScope.dispose();
myScope = null;
}