close watchers before generating bundle