Implement shutdown of disabled addons. Also implement safer file access in AddonRepositoryImpl