SW-800: Make sure open and close get called on MoMQueryRPC when using the schedulers
Closes SW-800
See merge request !24 (merged)
(cherry picked from commit 596192c4)
2c343edb SW-800: Make sure open and close get called on MoMQueryRPC when using the schedulers 243f8d8c SW-800: processed review comments: use BasicScheduler within a context as well 502a4ea6 SW-800: merged master into SW-800 e7008d39 SW-800: fixes