I think the app is certainly a factor, there was some discussion on this in the VisibleTesla thread.. if you keep making API requests, it keeps the car from going to sleep. The app should know not to make permanent updates if its going to prevent sleep mode, but you can try and manually kill it...