Make usage serverprovider in common way

Getting of serverprovider and making cleanup may be done in EngineFactory.

Change-Id: I50bca5e0cfa60b2fada80a05c2f11192462778bb