Moved data store flush on feature type delete to event listener
Moved Datastore flush and added null check.
Flush cache and retry on failure to get feature type
rest stress test adds and removes store and layer
try to reproduce 2784
able to reproduce