Shutdown the input controller before killing the window, same for the scene