Settings > General > System Tray section (scroll down if you don't see the option) > Always minimize to system tray instead of task bar
This is when you are using "minimize" button, not "close".
Anyway OBS is running. So, what sense? Do you want to run it minimized to tray when application started? Then there is another checkbox under the Settings > General > System Tray section.