fixed core services destructor call chain.
Moved commands to services package.