ISPN-4464 Unify test suite for remote and embedded DSL based query tests

* Fixed test so it will properly close cache manager and continue build
ISPN-3743

Ignore some of the errors that can be thrown by a node while stopping:
IllegalStateException and NullPointerException.