Teams minimises to the system tray instead of quitting by default. To close it now, right click the Teams icon in the tray (bottom-right on Windows, menu bar on Mac) and choose Quit. To stop it hanging around, in Teams Settings turn off 'On close, keep the application running' and 'Auto-start', then the X actually closes it and it does not relaunch on boot.
Settings, General, untick On close keep the application running. After that the X actually closes it. To force it now, right-click the tray icon and Quit, or end it in Task Manager.