Added TCP onClose().