cleaning up activity contexts