Adds safe handling for when the app view disappears. When this happens, the app will first instruct the gokart to stop, and then disconnect from bluetooth.