reconnect error fix

removeChild was throwing an error that was preventing term/tail to attempt reconnect