properly close datastore on doStop, create configuration upon start of the component i.e doStart