startup.destroy();
}
TaskDescriptionRepository repository = currentEnvironment.getTaskManager()
.getTaskDescriptionRepository();
if (repository != null) {
repository.clear();
}
currentEnvironment.getTaskManager().cleanup();
for (SynapseEventSource eventSource : currentConfig.getEventSources()) {
safeRemoveService(eventSource.getName());