Removed unused method finishInactiveActivities()