fixed app stopping on sleep and wake, maybe.