You can log out of WhatsApp on your computer even if you are not physically near your computer.
To do so:
Once you have tapped on Log out from all computers, any previously established logins will no longer be valid. You will have to scan the QR code the next time you open WhatsApp on your computer.
WhatsApp Support Team