Check if OUT port is attached when IN disconnects

L25 implies that OUT is not required to be attached to use the counter component. The disconnect did not previously check if OUT was attached before trying to disconnect causing an exception if OUT was not attached.