properly close datastore when the component stop
create configuration upon start of the component