I have a java app that automatically launches when the machine boots. The trouble is that when Terminal is shut down, it does not actually close the window for that app, and so the next time the machine boots the old window is still there, and a new one is created when the app launches. So I get an additional tab/window every single day, forever.
System Preferences is already set to close windows when quitting an app. How can I get Terminal to stop doing this and actually close its tabs/windows when it is quit?