renaming: onDisconnect => onceDisconnected