handle the case where app crashes and we're in that context