Add clean up to the input and output session

When using a NavigationWindow I was getting crashes every single time the user opened a few screens inside of the navWin, then getting into the screen with the camera, going back to the previous screen and then coming back to the camera.