Try disabling the terminal.integrated.enablePersistentSessions setting.
terminal.integrated.enablePersistentSessions