You can change this in the Windows Terminal settings. In the 'Advanced profile settings' there is an option called 'Never close automatically'.